Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

129
Visualizações
How to get "scoped slot" behaviour in web components?

I am looking closely at lit to make a cross-framework component library but to be a viable option I need a way to obtain the result of something like Vue's scoped slots or React render functions so I can share the state saved in lit with the components that the users will code with their favorite framework.

Any idea on how to achieve something like this:

<my-awesome-lit-list>
       <UserReactComponentSingleRow {...stateFromMyAwesomeLitList} />
</my-awesome-lit-list>

Being able to have the lit component handling the logic and only pass the correct props to the child component from another framework would be the holy grail of framework interoperability. In the example the user could provide a custom Row component with his framework of choice. I know this specific syntax is not achievable, but I was wondering if there are alternative patterns to obtain the end result.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda